﻿namespace WMS6.Web.CommonMethodServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="LPNGenParams", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class LPNGenParams : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private int CountField;
        [OptionalField]
        private string DocIDField;
        [OptionalField]
        private string DocTypeField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string GenerateTypeField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public int Count
        {
            get
            {
                return this.CountField;
            }
            set
            {
                if (!this.CountField.Equals(value))
                {
                    this.CountField = value;
                    this.RaisePropertyChanged("Count");
                }
            }
        }

        [DataMember]
        public string DocID
        {
            get
            {
                return this.DocIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DocIDField, value))
                {
                    this.DocIDField = value;
                    this.RaisePropertyChanged("DocID");
                }
            }
        }

        [DataMember]
        public string DocType
        {
            get
            {
                return this.DocTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DocTypeField, value))
                {
                    this.DocTypeField = value;
                    this.RaisePropertyChanged("DocType");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string GenerateType
        {
            get
            {
                return this.GenerateTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.GenerateTypeField, value))
                {
                    this.GenerateTypeField = value;
                    this.RaisePropertyChanged("GenerateType");
                }
            }
        }
    }
}

